package com.richest.api.controller.form;

import java.util.Date;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import io.swagger.annotations.ApiModelProperty;

/**
 * 订单表单
 *
 * @author 杨博
 */

public class OrderForm {

	@ApiModelProperty(value = "用户id")
	@NotBlank(message = "用户id不能为空")
	private Long user_id;

	@ApiModelProperty(value = "商户id")
	@NotBlank(message = "商户id不能为空")
	private Long merchant_id;

	@ApiModelProperty(value = "提交日期时间")
	@NotBlank(message = "订单提交时间不能为空")
	private Date commit_date_time;

	@ApiModelProperty(value = "备注")
	@Length(max = 1000, message = "备注不能超过1000个字符")
	private String remarks;

	@ApiModelProperty(value = "子订单")
	private OrderSubForm subForm;

	public final Long getUser_id() {
		return user_id;
	}

	public final void setUser_id(Long user_id) {
		this.user_id = user_id;
	}

	public final Long getMerchant_id() {
		return merchant_id;
	}

	public final void setMerchant_id(Long merchant_id) {
		this.merchant_id = merchant_id;
	}

	public final Date getCommit_date_time() {
		return commit_date_time;
	}

	public final void setCommit_date_time(Date commit_date_time) {
		this.commit_date_time = commit_date_time;
	}

	public final String getRemarks() {
		return remarks;
	}

	public final void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public final OrderSubForm getSubForm() {
		return subForm;
	}

	public final void setSubForm(OrderSubForm subForm) {
		this.subForm = subForm;
	}

}
